//
//  CYDiscoverTableViewController.swift
//  WeiBo
//
//  Created by Mr_J on 16/3/2.
//  Copyright © 2016年 mac. All rights reserved.
//

import UIKit

class CYDiscoverTableViewController: CYVisitorViewCotroller {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Uncomment the following line to preserve selection between presentations
        // self.clearsSelectionOnViewWillAppear = false

        // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
        // self.navigationItem.rightBarButtonItem = self.editButtonItem()
        if !userLogin {
            visitorView.setPageInfo("visitordiscover_image_message", message: "登录后，最新、最热微博尽在掌握，不再会与实事潮流擦肩而过")
            return
        }
        searView()
        
    }

    private func searView() {
        
        let searView = CYDiscoverSearchView.seaView()

        searView.frame.size.width = UIScreen.mainScreen().bounds.width
        
        navigationItem.titleView = searView
        
    }
    
    

    

}
